#import <Cocoa/Cocoa.h>
#import "collaboration_subsystem.h"

@interface View : NSView {
	NSInteger tipo;
	NSPoint point_init;
	NSPoint point_end;
	
	NSMutableArray* lines_array; //para guardar las lineas
	NSMutableArray* rects_array; //para guardar los rectangulos
	NSMutableArray* ovals_array; //para guardar los ovalos
	NSMutableArray* hand_draw_array; //para guardar la mano alzada
	
	NSMutableArray* points_array; //para cada trazo de mano alzada
	
	IBOutlet NSTextField* label; //etiqueta para mostrar las parejas
	
	ListeningObject* obj;
}

@property (readwrite, assign) NSInteger tipo;

-(void) drawLineFromPoint: (NSPoint)p0 toPoint: (NSPoint)p1 withColor: (NSColor*)color;
-(void) drawRectFromPoint: (NSPoint)p0 withSize: (NSSize)size withColor: (NSColor*)color;
-(void) drawOvalFromPoint: (NSPoint)p0 withRadius: (CGFloat)radius withColor: (NSColor*)color;
-(void) drawPoints: (NSMutableArray*)points withColor: (NSColor*)color;
-(void) showPanel: (NSString*)str;
-(void) cleanAll;
-(void) setTemp:(float)afloat;

@end

//para ampliar el comportamiento de NSColor
@interface NSColor(NSColorHexadecimalValue)
	-(NSString*)hexadecimalValue;
	-(NSString*)htmlHexadecimalValue;
	+(NSColor*)colorFromHexRGB:(NSString *) inColorString;
@end
